package com.gewu.ordlelist.base;

import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.Window;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.fragment.app.Fragment;

public abstract class BaseFragment extends Fragment {

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = FindView(inflater);
        initView(view);
        setAdapter();
        return view;
    }

    public abstract View FindView(LayoutInflater inflater);

    public abstract void initView(View view);

    public abstract String setToolbarText();


    public void setAdapter (){
        Log.i("TAG", "setAdapter: +fu");
    }

}
